import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

export default {
    path: '/user',
    name: 'user',
    redirect: {
        name: 'user'
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'merchantManage/merchant/merchantList',
            name: 'merchantList',
            meta: {
                auth: true, // 是否校验权限
                title: '商家管理'
            },
            component: () => import('@/pages/user/merchantManage/merchant/merchantList')
        },
        {
            path: 'merchantManage/merchant/merchantView',
            name: 'merchantView',
            meta: {
                auth: true, // 是否校验权限
                title: '查看商家管理'
            },
            component: () => import('@/pages/user/merchantManage/merchant/merchantView')
        },
        {
            path: 'merchantManage/merchant/merchantLogList',
            name: 'merchantLogList',
            meta: {
                auth: true, // 是否校验权限
                title: '查看商家经营范围日志'
            },
            component: () => import('@/pages/user/merchantManage/merchant/merchantLogList')
        },
        {
            path: 'merchantManage/merchant/merchantService',
            name: 'merchantService',
            meta: {
                auth: true, // 是否校验权限
                title: '关联商家服务'
            },
            component: () => import('@/pages/user/merchantManage/merchant/merchantService')
        },
        {
            path: 'merchantManage/merchant/merchantEdit',
            name: 'merchantEdit',
            meta: {
                auth: true,
                title: '编辑商家'
            },
            component: () => import('@/pages/user/merchantManage/merchant/merchantEdit')
        },
        {
            path: 'merchant/authenticationView',
            name: 'authenticationView',
            meta: {
                auth: true,
                title: '实名认证'
            },
            component: () => import('@/pages/user/merchantManage/merchant/authenticationView')
        },
        {
            path: 'merchantManage/merchant/merchantRelevance',
            name: 'merchantRelevance',
            meta: {
                auth: true,
                title: '关联角色'
            },
            component: () => import('@/pages/user/merchantManage/merchant/merchantRelevance')
        },
        {
            path: 'merchantManage/contractManage/contractManageList',
            name: 'contractManageList',
            meta: {
                auth: true, // 是否校验权限
                title: '合同管理'
            },
            component: () => import('@/pages/user/merchantManage/contractManage/contractManageList')
        },
        {
            path: 'merchantManage/merchantInfo/merchantInfoList',
            name: 'merchantInfoList',
            meta: {
                auth: true, // 是否校验权限
                title: '注册信息管理'
            },
            component: () => import('@/pages/user/merchantManage/merchantInfo/merchantInfoList')
        },
        {
            path: 'merchantManage/contractManage/contractManageAdd',
            name: 'contractManageAdd',
            meta: {
                auth: true, // 是否校验权限
                title: '新增合同信息'
            },
            component: () => import('@/pages/user/merchantManage/contractManage/contractManageAdd')
        },
        {
            path: 'merchantManage/contractManage/contractManageEdit',
            name: 'contractManageEdit',
            meta: {
                auth: true, // 是否校验权限
                title: '编辑合同信息'
            },
            component: () => import('@/pages/user/merchantManage/contractManage/contractManageEdit')
        },
        {
            path: 'merchantManage/contractManage/contractManageView',
            name: 'contractManageView',
            meta: {
                auth: true, // 是否校验权限
                title: '查看合同信息'
            },
            component: () => import('@/pages/user/merchantManage/contractManage/contractManageView')
        },
        {
            path: 'merchantManage/developerApplication/developerApplicationList',
            name: 'developerApplicationList',
            meta: {
                auth: true, // 是否校验权限
                title: '开发者申请'
            },
            component: () => import('@/pages/user/merchantManage/developerApplication/developerApplicationList')
        },
        {
            path: 'merchantManage/developerApplication/developerApplicationAudit',
            name: 'developerApplicationAudit',
            meta: {
                auth: true, // 是否校验权限
                title: '开发者审核'
            },
            component: () => import('@/pages/user/merchantManage/developerApplication/developerApplicationAudit')
        },
        {
            path: 'merchantManage/entryManage/entryManageList',
            name: 'entryManageList',
            meta: {
                auth: true, // 是否校验权限
                title: '入驻管理'
            },
            component: () => import('@/pages/user/merchantManage/entryManage/entryManageList')
        },
        {
            path: 'merchantManage/entryManage/entryManageListAll',
            name: 'entryManageListAll',
            meta: {
                auth: true, // 是否校验权限
                title: '恢复分类'
            },
            component: () => import('@/pages/user/merchantManage/entryManage/entryManageListAll')
        },
        {
            path: 'partner/cooperativePartner/cooperativePartnerList',
            name: 'cooperativePartnerList',
            meta: {
                auth: true, // 是否校验权限
                title: '合伙人'

            },
            component: () => import('@/pages/user/cooperativePartner/cooperativePartnerList')
        },
        {
            path: 'partner/cooperativePartner/cooperativePartnerAdd',
            name: 'cooperativePartnerAdd',
            meta: {
                auth: true, // 是否校验权限
                title: '新增合作伙伴'
            },
            component: () => import('@/pages/user/cooperativePartner/cooperativePartnerAdd')
        },
        {
            path: 'partner/cooperativePartner/cooperativePartnerEdit',
            name: 'cooperativePartnerEdit',
            meta: {
                auth: true, // 是否校验权限
                title: '编辑合作伙伴'
            },
            component: () => import('@/pages/user/cooperativePartner/cooperativePartnerEdit')
        },
        {
            path: 'partner/cooperativePartner/cooperativePartnerGuanlian',
            name: 'cooperativePartnerGuanlian',
            meta: {
                auth: true, // 是否校验权限
                title: '关联商家'
            },
            component: () => import('@/pages/user/cooperativePartner/cooperativePartnerGuanLian')
        },
        {
            path: 'partner/cooperativePartner/cooperativePartnerEdit1',
            name: 'cooperativePartnerEdit1',
            meta: {
                auth: true, // 是否校验权限
                title: '未关联商家'
            },
            component: () => import('@/pages/user/cooperativePartner/cooperativePartnernoGuanLian')
        },
        {
            path: 'merchantManage/merchantCancel/merchantCancelList',
            name: 'merchantCancelList',
            meta: {
                auth: true,
                title: '商家注销申请-审核通过'
            },
            component: () => import('@/pages/user/merchantManage/merchantCancel/merchantCancelList')
        },
        {
            path: 'merchantManage/merchantCancel/merchantCancelView',
            name: 'merchantCancelView',
            meta: {
                auth: true,
                title: '查看'
            },
            component: () => import('@/pages/user/merchantManage/merchantCancel/merchantCancelView')
        },
        {
            path: 'merchantManage/merchantCancel/merchantCancelAudit',
            name: 'merchantCancelAudit',
            meta: {
                auth: true,
                title: '审核'
            },
            component: () => import('@/pages/user/merchantManage/merchantCancel/merchantCancelView')
        },
        {
            path: 'merchantManage/entryManage/entryManageAudit',
            name: 'entryManageAudit',
            meta: {
                auth: true,
                title: '审核'
            },
            component: () => import('@/pages/user/merchantManage/entryManage/entryManageAudit')
        },
        {
            path: 'merchantManage/entryManage/entryManageView',
            name: 'entryManageView',
            meta: {
                auth: true,
                title: '查看'
            },
            component: () => import('@/pages/user/merchantManage/entryManage/entryManageView')
        },
        {
            path: 'customer/customer/customerList',
            name: 'customerList',
            meta: {
                auth: true,
                title: '客户管理'
            },
            component: () => import('@/pages/user/customer/customerList')
        },
        {
            path: 'customer/customer/customerView',
            name: 'customerView',
            meta: {
                auth: true,
                title: '客户管理查看'
            },
            component: () => import('@/pages/user/customer/customerView')
        },
        {
            path: 'servicer/servicer/servicerList',
            name: 'servicerList',
            meta: {
                auth: true,
                title: '服务者管理'
            },
            component: () => import('@/pages/user/servicer/servicerList')
        },
        {
            path: 'servicer/servicer/servicerView',
            name: 'servicerView',
            meta: {
                auth: true,
                title: '服务者查看'
            },
            component: () => import('@/pages/user/servicer/servicerView')
        },
        {
            path: 'blacklist/customerPullBlack/customerPullBlackList',
            name: 'customerPullBlackList',
            meta: {
                auth: true,
                title: '用户黑名单'
            },
            component: () => import('@/pages/user/pullblack/customer/customerPullBlackList')
        },
        {
            path: 'blacklist/customerPullBlack/customerPullBlackView',
            name: 'customerPullBlackView',
            meta: {
                auth: true,
                title: '用户黑名单查看'
            },
            component: () => import('@/pages/user/pullblack/customer/customerPullBlackView')
        },
        {
            path: 'blacklist/merchantPullBlack/merchantPullBlackList',
            name: 'merchantPullBlackList',
            meta: {
                auth: true,
                title: '商户黑名单'
            },
            component: () => import('@/pages/user/pullblack/merchant/merchantPullBlackList')
        },
        {
            path: 'blacklist/merchantPullBlack/merchantPullBlackView',
            name: 'merchantPullBlackView',
            meta: {
                auth: true,
                title: '商户黑名单查看'
            },
            component: () => import('@/pages/user/pullblack/merchant/merchantPullBlackView')
        },
        {
            path: 'blacklist/servicerPullBlack/servicerPullBlackList',
            name: 'servicerPullBlackList',
            meta: {
                auth: true,
                title: '服务者黑名单'
            },
            component: () => import('@/pages/user/pullblack/servicer/servicerPullBlackList')
        },
        {
            path: 'blacklist/servicerPullBlack/servicerPullBlackView',
            name: 'servicerPullBlackView',
            meta: {
                auth: true,
                title: '服务者黑名单查看'
            },
            component: () => import('@/pages/user/pullblack/servicer/servicerPullBlackView')
        },
        {
            path: 'blacklist/cooperative/cooperativePartnerBlackList',
            name: 'cooperativePartnerBlackList',
            meta: {
                auth: true,
                title: '合伙人黑名单'
            },
            component: () => import('@/pages/user/pullblack/cooperative/cooperativePartnerBlackList')
        },
        {
            path: 'blacklist/cooperative/cooperativePartnerBlackView',
            name: 'cooperativePartnerBlackView',
            meta: {
                auth: true,
                title: '合伙人黑名单查看'
            },
            component: () => import('@/pages/user/pullblack/cooperative/cooperativePartnerBlackView')
        },
		{
		    path: 'feedback/feedback/feedbackList',
		    name: 'feedbackList',
		    meta: {
		        auth: true,
		        title: '意见反馈管理'
		    },
		    component: () => import('@/pages/user/feedback/feedbackList')
		},
        {
            path: 'merchantManage/hotShop/hotShopList',
            name: 'hotShopList',
            meta: {
                auth: true,
                title: '热门店铺'
            },
            component: () => import('@/pages/user/merchantManage/hotShop/hotShopList')
        },
        {
            path: 'merchantManage/hotShop/hotShopAdd',
            name: 'hotShopAdd',
            meta: {
                auth: true,
                title: '新增热门店铺'
            },
            component: () => import('@/pages/user/merchantManage/hotShop/hotShopAdd')
        },
        {
            path: 'developer/waitAudit/waitAuditList',
            name: 'waitAuditList',
            meta: {
                auth: true,
                title: '开发者待审核列表'
            },
            component: () => import('@/pages/user/developer/waitAudit/waitAuditList')
        },
        {
            path: 'developer/waitAuditAudit',
            name: 'waitAudit',
            meta: {
                auth: true,
                title: '开发者待审核'
            },
            component: () => import('@/pages/user/developer/waitAudit/waitAudit')
        },
        {
            path: 'developer/auditPass/auditPassList',
            name: 'auditPassList',
            meta: {
                auth: true,
                title: '审核通过'
            },
            component: () => import('@/pages/user/developer/auditPass/auditPassList')
        },
        {
            path: 'developer/auditPassOpenApi',
            name: 'auditPassOpenApi',
            meta: {
                auth: true,
                title: '查看OpenApi'
            },
            component: () => import('@/pages/user/developer/auditPass/auditPassOpenApi')
        },
        {
            path: 'developer/auditFailed/auditFailedList',
            name: 'auditFailedList',
            meta: {
                auth: true,
                title: '审核未通过'
            },
            component: () => import('@/pages/user/developer/auditFailed/auditFailedList')
        },
        {
            path: 'developer/auditFailedListView',
            name: 'auditFailed',
            meta: {
                auth: true,
                title: '审核未通过,重新审核'
            },
            component: () => import('@/pages/user/developer/auditFailed/auditFailedListView')
        },
        {
            path: 'openApi/openApi/openApiList',
            name: 'openApiList',
            meta: {
                auth: true,
                title: 'openApi管理'
            },
            component: () => import('@/pages/user/openApi/openApiList')
        },
        {
            path: 'openApi/openApi/openApiView',
            name: 'openApiView',
            meta: {
                auth: true,
                title: 'openApi查看'
            },
            component: () => import('@/pages/user/openApi/openApiView')
        },
        {
            path: 'openApiLog/openApiLog/openApiLogList',
            name: 'openApiLogList',
            meta: {
                auth: true,
                title: 'openApi日志'
            },
            component: () => import('@/pages/user/openApiLog/openApiLogList')
        }
    ]
};
